package com.danskin.wechat.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.danskin.wechat.dao.CarouselInfoDao;
import com.danskin.wechat.entity.CarouselInfo;
import com.danskin.wechat.service.CarouselInfoService;
import com.danskin.wechat.util.Page;
@Service
public class CarouselInfoServiceImpl implements CarouselInfoService{
	@Autowired
	private CarouselInfoDao carouselInfoDao;

	@Override
	public List<CarouselInfo> getCarouselInfoList(Page page) {
		// TODO Auto-generated method stub
		return carouselInfoDao.listPageCarouselInfoList(page);
	}

	@Override
	public void deleteCarouselInfo(String id) {
		// TODO Auto-generated method stub
		carouselInfoDao.deleteCarouselInfo(id);
	}

	@Override
	public void saveCarouselInfoModel(CarouselInfo carouselInfo) {
		// TODO Auto-generated method stub
		carouselInfoDao.saveCarouselInfoModel(carouselInfo);
	}

	@Override
	public CarouselInfo findCarouselInfobyId(String id) {
		// TODO Auto-generated method stub
		return carouselInfoDao.findCarouselInfobyId(id);
	}

	@Override
	public void updateCarouselInfo(CarouselInfo carouselInfo) {
		// TODO Auto-generated method stub
		carouselInfoDao.updateCarouselInfo(carouselInfo);
	}

	@Override
	public List<CarouselInfo> queryCarouselInfoImg(String appId) {
		// TODO Auto-generated method stub
		return carouselInfoDao.queryCarouselInfoImg(appId);
	}

	@Override
	public List<CarouselInfo> queryCarouselInfoBySort(String sort,int mpId) {
		// TODO Auto-generated method stub
		return carouselInfoDao.queryCarouselInfoBySort(sort,mpId);
	}
}
